#include <stdio.h>
#include <stdlib.h>

static unsigned char edid_table[128] = {0x00,
	0xFF,
	0xFF,
	0xFF,
	0xFF,
	0xFF,
	0xFF,
	0x00, 
	0x06,
	0x96,
	0x48,
	0x44,
	0x01,
	0x00,
	0x00,
	0x00,
	0x25,
	0x10,
	0x01,
	0x03,
	0x80,
	0x31,
	0x1C,
	0xA0,
	0x2A,
	0xAA,
	0x33,
	0xA4,
	0x55,
	0x48,
	0x93,
	0x25,
	0x10,
	0x45,
	0x47,
	0xFF,
	0xFF,
	0x80,
	0x81,
	0x8F,
	0x81,
	0x99,
	0xA9,
	0x40,
	0x61,
	0x59,
	0x45,
	0x59,
	0x31,
	0x59,
	0x71,
	0x4A,
	0x81,
	0x40,
#if 0
	0x02,
	0x3A,
	0x80,
	0x18,
	0x71,
	0x38,
	0x2D,
	0x40,
	0x46,
	0x28,
	0x55,
	0x00,
	0xE8,
	0x12,
	0x11,
	0x00,
	0x00,
	0x18,
#endif

#if 1
0x28, 
0x3C, 
0x80, 
0xA0, 
0x70, 
0xB0, 
0x23, 
0x40, 
0x30, 
0x20, 
0x36, 
0x00, 
0x06, 
0x44, 
0x21, 
0x00, 
0x00, 
0x1A,
#endif

	0x01,
	0x1D,
	0x00,
	0x72,
	0x51,
	0xD0,
	0x1E,
	0x20,
	0x46,
	0x28,
	0x55,
	0x00,
	0xE8,
	0x12,
	0x11,
	0x00,
	0x00,
	0x18,
	0x00,
	0x00,
	0x00,
	0xFC,
	0x00,
	0x48,
	0x44,
	0x4D,
	0x49,
	0x20,
	0x54,
	0x56,
	0x0A,
	0x20,
	0x20,
	0x20,
	0x20,
	0x20,
	0x00,
	0x00,
	0x00,
	0xFD,
	0x00,
	0x1D,
	0x56,
	0x0F,
	0x6F,
	0x11,
	0x00,
	0x0A,
	0x20,
	0x20,
	0x20,
	0x20,
	0x20,
	0x20,
	0x01,
#if 0
	0xAB,
#endif
#if 1
	0x69,
#endif
};

//e-edid
static unsigned  char e_edid_table[128] = {0x02, 
0x03,
0x21,
0x71,
0x4D,
0x90,
0x04,
0x03,
0x12,
0x01,
0x13,
0x11,
0x07,
0x05,
0x06,
0x22,
0x14,
0x15,
0x23,
0x09,
0x07,
0x07,
0x83,
0x4F,
0x00,
0x00,
0x66,
0x03,
0x0C,
0x00,
0x10,
0x00,
0x80,
/*first timings detail*/
//0x01,
//0x1D,
//0x00,
//0x72,
//0x51,
//0xD0,
//0x1E,
//0x20,
//0x6E,
//0x28,
//0x55,
//0x00,
//0xE8,
//0x12,
//0x11,
//0x00,
//0x00,
//0x1E,
/* end first timing detail */
/* 1920x1200 timings */
0x28, 
0x3C, 
0x80, 
0xA0, 
0x70, 
0xB0, 
0x23, 
0x40, 
0x30, 
0x20, 
0x36, 
0x00, 
0x06, 
0x44, 
0x21, 
0x00, 
0x00, 
0x1A,
/* 1920x1200 timings end */

0x8C,
0x0A,
0xD0,
0x90,
0x20,
0x40,
0x31,
0x20,
0x0C,
0x40,
0x55,
0x00,
0xE8,
0x12,
0x11,
0x00,
0x00,
0x18,
0x8C,
0x0A,
0xD0,
0x8A,
0x20,
0xE0,
0x2D,
0x10,
0x10,
0x3E,
0x96,
0x00,
0xE8,
0x12,
0x11,
0x00,
0x00,
0x18,
0x01,
0x1D,
0x80,
0x18,
0x71,
0x1C,
0x16,
0x20,
0x58,
0x28,
0x25,
0x00,
0xE8,
0x12,
0x11,
0x00,
0x00,
0x98,
0x01,
0x1D,
0x00,
0xBC,
0x52,
0xD0,
0x1E,
0x20,
0xB8,
0x28,
0x55,
0x40,
0xE8,
0x12,
0x11,
0x00,
0x00,
0x1E,
0x00,
0x00,
0x00,
0x00,
//0xA5, 
0x96
};


int main(void)
{
	int i = 0;
	char edid_sum = 0;

#if 0
	for (i = 0; i < 128; i++) {
		edid_sum += edid_table[i];
		printf("edid_sum = %d\t edid_table[%d] = 0x%x\n", edid_sum, i, edid_table[i]);
	}

#endif
	edid_sum = 0;

	for(i = 0; i < 128; i++) {
		edid_sum += e_edid_table[i];
		printf("edid_sum = %d\t e_edid_table[%d] = 0x%x\n", edid_sum, i, e_edid_table[i]);
	}

	printf("edid_sum = %d\n", edid_sum);
	
	return 0;
}
